﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameSPK.DAO
{
    class ChuDeDAO
    {
        public static List<ChuDe> getChuDe()
        {
            DBTroChoiDataContext db = new DBTroChoiDataContext();
            List<ChuDe> lstChuDe = new List<ChuDe>();
            var chude = from cd in db.ChuDes
                        select cd;
            foreach (ChuDe cd in chude)
            {
                lstChuDe.Add(cd);
            }
            return lstChuDe;
               
        }
    }
}
